import { request } from "@/utils/request";
const apiPrefixPath = '/ht-smart-house'
// TODO
export const getAppointmentRecordsApi = params => {
    return request({
        url: `${apiPrefixPath}/subscribeHouse/getSubscribeInfo`,
        method:'POST',
        data:{
            page: params.page,
            size: params.pageSize
        }
    })
}
/**
 * 用户撤销预约看房
 * @param id
 * @returns {Promise | Promise<unknown>}
 */
export const cancelSubscribeApi = id => {
    return request({
        url: `${apiPrefixPath}/subscribeHouse/cancelSubscribe`,
        method: 'POST',
        type:'application/x-www-form-urlencoded',
        data: {id}
    })
}
export const getRecordMsgStatusApi = () => {
    return request({
        url: `${apiPrefixPath}/subscribeHouse/getSubscribeReadStatusData`,
        method: 'POST'
    })
}
